package com.life.view
{
	import flash.display.Sprite;
	
	import com.life.vo.BonusVO;

	public class BonusView extends Sprite
	{
		public var bonusVO : BonusVO;
		
		public function BonusView()
		{
			super();
		}
		
		public function updatePos( ) : void {
			x = bonusVO.posX;
			y = bonusVO.posY;
		}
		
		public function updateGraphic( ) : void {			
			switch(bonusVO.type){
				case BonusVO.EXPAND:
					graphics.beginFill(0x00ffff)
					graphics.drawEllipse(0,0,10,4);		
					break;
				case BonusVO.SUBSTRACT:
					graphics.beginFill(0xffff00);
					graphics.drawEllipse(0,0,4,10);
					break;
			}
			graphics.endFill( );
		}
		
		
	}
}